home *** CD-ROM | disk | FTP | other *** search
- Path: earth.superlink.net!usenet
- From: Mike Rizzo <rizzom@mars.superlink.net>
- Newsgroups: comp.lang.c
- Subject: Newbie Q: Arrays > 64K take 2
- Date: 5 Feb 1996 19:02:49 GMT
- Organization: SuperNet Inc. (908) 828-8988
- Message-ID: <4f5k8p$dg4@earth.superlink.net>
- NNTP-Posting-Host: ez17.superlink.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
-
- Hi,
-
- I'm using Turbo C++ (compliing in C) with DOS. I am having
- trouble with an arrya larger than 64K. I keep getting the
- error: Array too large. I have tried the medium, compact,
- large, and huge memory models but they did not work. Here is
- the definition of the struture and declaration of the array:
-
- typedef enum {IDLE = 0, BUSY = 1} proc_state;
-
- typedef struct
- {
- char inst[10];
- }InstString;
-
- typedef struct
- {
- int datamem[102];
- InstString instruct[102];
- proc_state state;
- int PC;
- char IR[10];
- int AC;
- }VMProc;
-
- main()
- {
- VMProc proc[64];
- ..
- }
-
- I would appreciate any hekp on the matter.
- I gave an incorrect e-mail address in the last posting (sorry).
- My correct e-mail is rizzom@mars.superlink.net
-
- Thanks
-
- Mike Rizzo
-
-